package com.xcw.bb.dao;

import java.util.List;

import com.xcw.bb.entity.Course;
import com.xcw.bb.entity.Interact;
import com.xcw.bb.entity.User;

public interface InteractDao {
    List<Interact>findAllstudentInteract(int id)throws Exception;
    
    List<Interact>findLikeStudentInteractOfTeacherDepartment(String answer,String value,int id) throws Exception;
    
    List<Interact>findLikeStudentInteractOfTeacherName(String answer,String value,int id) throws Exception;
    
    List<User>findAllTeacher()throws Exception;
    
    List<Course>findCourseByTeacherId(int id)throws Exception;
    
    //void insertInteract(Interact t) throws Exception;
    
    void insertInteract(Interact interact);
    
    //int insertInteract(String teacher,String student,String title,String content);
    
    void deleteOneInteract(int id);
    
    Interact findInteractDetail(int id)throws Exception;
    
    void updateByEvaluate(int id,String content)throws Exception;
    
    void updateOneInteractAccusationFlag(int id)throws Exception;
    
    void updateOneInteractContent(int id,String content)throws Exception;
    
}
